import { $t } from '@/plugins/i18n'
export default {
  path: '/auth',
  name: 'Auth',
  redirect: '/auth/user',
  level: 1,
  meta: {
    title: $t('route.auth'),
    icon: 'icon-auth',
    rank: 1
  },
  children: [
    {
      name: 'AuthUser',
      path: '/auth/user',
      component: () => import('@/views/auth/user/index.vue'),
      meta: { title: $t('route.authUser'), menu: true }
    },
    {
      name: 'AuthMenu',
      path: '/auth/menu',
      component: () => import('@/views/auth/menu/index.vue'),
      meta: { title: $t('route.authMenu'), menu: true, full: true }
    },
    {
      name: 'AuthRole',
      path: '/auth/role',
      component: () => import('@/views/auth/role/index.vue'),
      meta: { title: $t('route.authRole'), menu: true }
    },
    {
      name: 'AuthRoleDetail',
      path: '/auth/role/:id',
      component: () => import('@/views/auth/role/detail.vue'),
      meta: {
        title: $t('route.authRoleDetail'),
        activePath: '/auth/role'
      }
    },
    {
      name: 'AuthOperation',
      path: '/auth/operation',
      component: () => import('@/views/auth/operation/index.vue'),
      meta: { title: $t('route.authOperation'), menu: true }
    }
  ]
} satisfies RouteConfigsTable
